<ul id="activities">
<?php 
$activities = User::getActivityByType($this->user, null);

foreach ($activities as $activity) { ?>
<li class="item">
<?php echo Activity::toString($activity,$this->user->username); ?>

</li>
<?php }?>
</ul>